/**
 * Created by kangdaye on 16/6/13.
 */
app.factory('withdrawListCache', function() {
    return{
        listTab : [
            {name : '所有'},
            {id : 0,name : '审核中'},
            {id : 1,name : '已通过'},
            {id : 2,name : '未通过'}
        ],
        listTableHeader : [
            {displayName:'ID', field: 'id', width:'10%'},
            {displayName:'真实姓名', field: 'name', width:'10%'},
            {displayName:'提现金额', field: 'amount',width:'10%'},
            {displayName:'提现渠道', width:'10%',cellTemplate:'<div ng-switch="row.channel">' +
            '<span ng-switch-when="WECHAT">微信</span>'+
            '<span ng-switch-when="ALIPAY">支付宝</span>'+
            '<span ng-switch-when="BALANCE">余额</span>'+
            '</div>'},
            {displayName:'提现账户', field: 'account', width:'15%'},
            {displayName:'提现时间', field: 'applyTime', width:'20%'},
            {displayName:'状态', width:'10%',cellTemplate:'<div ng-switch="row.status">' +
                '<span ng-switch-when="0">审核中</span>'+
                '<span ng-switch-when="1" class="cor-green">已通过</span>'+
                '<span ng-switch-when="2" class="cor-red">未通过</span>'+
            '</div>'},
            {displayName:'操作',width:'15%',cellTemplate:'<div class="operation">' +
                '<a ng-click="evt.entity.detail(row.uid,row.auditlog)">查看</a>' +
                '<a class="ml-10" ng-click="evt.entity.audit(row.uid,row.id)" ng-if="!row.status">审核</a>' +
            '</div>'
            }
        ]
    }
});
